package com.aspose.cells;

import java.util.ArrayList;

class znw {
   Chart a = null;
   int b = -1;
   ArrayList c = new ArrayList();
   ArrayList d = new ArrayList();
   String e = null;
   znx f = null;
   zol g;
   String h = null;

   zok a() {
      return this.g.e;
   }

   znw(zol var1, Chart var2) {
      this.g = var1;
      this.a = var2;
      if (var2.a != null && var2.a.a != null) {
         int var3 = this.a().r;
         this.h = "themeOverride" + var3 + ".xml";
         this.a("http://schemas.openxmlformats.org/officeDocument/2006/relationships/themeOverride", "../theme/" + this.h, (String)null);
         this.a().a(false, "/xl/theme/" + this.h, "application/vnd.openxmlformats-officedocument.themeOverride+xml");
         ++this.a().r;
      }

      this.f = new znx(this);
      if (this.f.b == null) {
         this.f = null;
      } else {
         this.f.a = this.a("http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes", "../drawings/" + this.f.b, (String)null);
      }

   }

   String a(byte[] var1) throws Exception {
      if (var1 != null && var1.length != 0) {
         zom var2 = new zom();
         var2.a = var1;
         var2.b = zase.a("image", this.a().d(), var1);
         com.aspose.cells.b.a.a.ze.a(this.c, (Object)var2);
         var2.c = this.a("http://schemas.openxmlformats.org/officeDocument/2006/relationships/image", "../media/" + var2.b, (String)null);
         return var2.c;
      } else {
         return null;
      }
   }

   private String a(String var1, String var2, String var3) {
      String var4 = "rId" + (this.d.size() + 1);
      zqe var5 = new zqe(var4, var1, var2, var3);
      com.aspose.cells.b.a.a.ze.a(this.d, (Object)var5);
      return var4;
   }
}
